﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WooCoo.Security;

namespace WooCoo.Portal.Contracts
{
    public interface ILoginService
    {
        LoginInfo Login(string usercode, string password);
        /// <summary>
        /// 根据SessionID获取用户身份信息
        /// </summary>
        /// <param name="sessionID"></param>
        /// <returns></returns>
        UserPrincipal GetUserPrincipal(string sessionID);
    }
}
